package com.kordar.admin.config;

import com.kordar.admin.exception.page.GunsErrorView;
import com.kordar.admin.kernel.thlibs.LayuiDialect;
import com.kordar.admin.modular.sys.service.SettingService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KordarMvcConfig {
    @Bean
    public LayuiDialect thSysDialect() {
        return new LayuiDialect();
    }

    /**
     * 默认错误页面，返回json
     */
    @Bean("error")
    public GunsErrorView error() {
        return new GunsErrorView();
    }
}
